<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//--------------------增---------------------------------------------------
			const map = new Map();
			map.set("name", "张三");
			map.set("age", 20);
			map.set("name", "李四"); //改
			//--------------------查---------------------------------------------------
			for (let s of map) {
				// console.log(s);
			}
			console.log(map.get("name"));
			//--------------------删---------------------------------------------------
			map.delete("name");
			map.clear(); //清空
		</script>
	</body>
</html>
